package com.baizhi.wd.view;

import java.io.IOException;
import java.io.PrintWriter;

import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

public class AnchorView extends HttpServlet {
	public void service(HttpServletRequest request,HttpServletResponse response) throws IOException{
		
		//1.设置响应类型
		response.setContentType("text/html;charset=utf-8");
		//2.获取输出流
		PrintWriter out = response.getWriter();
		//3.使用输出流
		Object obj = request.getAttribute("str");
		out.println("<html>");
		out.println("<title>简答题3</title>");
		out.println("<body>");
		out.println(obj);
		out.println("</body>");
		out.println("</html>");
		
	}
}
